package IOtest;
import java.io.FileInputStream;
public class test1 {
    public static void main(String[] args) throws Exception{
        //创建字节输入流
        FileInputStream in =new FileInputStream("C:\\Users\\W\\Desktop\\JavaCode0ofIDEA\\IOtest\\file\\test01.txt");
        int b;//用于记录每次读取的字节
        while(true){
            b=in.read();
            if(b==-1)break;
            System.out.println(b);
        }
        in.close();
    }
}
